package com.dingreading.cloud.common.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class LoginDataDto implements Serializable {
    /**
     * authApps : ["mall","lesson","som","pb","books","douxuehui"]
     * corpUid : 211002
     * currentStoreId : 9
     * currentStoreName : 徽盐广场书房店
     * currentStoreUid : a88d5c2a4aaf11ed99e600163e2142fa
     * enabled : 1
     * fullName : 汪殿璋
     * lastLoginTime : 2024-05-29 10:38:05
     * nickName : 铁头店长
     * staffId : 150
     * staffUid : 47a7612b4ab011ed99e600163e2142fa
     * storeRoles : [{"cooperationType":100,"operationType":100,"roles":["20","21","30","50"],"storeName":"徽盐广场书房店","storeUid":"a88d5c2a4aaf11ed99e600163e2142fa"}]
     * username : 2110027
     */

    private String corpUid;
    private long currentStoreId;
    private String currentStoreName;
    private String currentStoreUid;
    private int enabled;
    private String fullName;
    private String lastLoginTime;
    private String nickName;
    private long staffId;
    private String staffUid;
    private String username;
    private List<String> authApps;
    private List<StoreRolesBean> storeRoles;

    // 合作类型：50叮叮书房 40佳音 30绘本 20悦读吧
    private List<Integer> currentCooperationTypes;
    // 运营类型： 100自营  80联营  50品牌加盟  40产品加盟  20课程合作（悦读吧）
    private Integer currentOperationType;

    @Data
    public static class StoreRolesBean implements Serializable {
        /**
         * cooperationType : 100
         * operationType : 100
         * roles : ["20","21","30","50"]
         * storeName : 徽盐广场书房店
         * storeUid : a88d5c2a4aaf11ed99e600163e2142fa
         */

        private int cooperationType;
        private int operationType;
        private String storeName;
        private String storeUid;
        private List<String> roles;
    }

}

